package com.guardchina.framework.util.exception;

import com.guardchina.framework.util.constant.ResultStatus;

/**
 * 描述：业务异常，这类异常一般是可以通过程序修复的，例如登录过期，频繁操作限制异常等
 *
 * @author lwb
 * @date 2019/3/15 14:12
 */
public class BusinessException extends BaseException {

    public BusinessException (String shortMessage){
        super(ResultStatus.BUSINESS_ERROR, shortMessage);
    }

    public BusinessException (String shortMessage, String detailMessage){
        super(ResultStatus.BUSINESS_ERROR, shortMessage, detailMessage);
    }

    public BusinessException(String shortMessage, Throwable throwable){
        super(ResultStatus.BUSINESS_ERROR, shortMessage, throwable);
    }

    public BusinessException(String shortMessage, String detailMessage, Throwable throwable){
        super(ResultStatus.BUSINESS_ERROR, shortMessage, detailMessage, throwable);
    }

    public BusinessException (int error, String shortMessage){
        super(error, shortMessage);
    }

    public BusinessException (int error, String shortMessage, String detailMessage){
        super(error, shortMessage, detailMessage);
    }

    public BusinessException(int error, String shortMessage, Throwable throwable){
        super(error, shortMessage, throwable);
    }

    public BusinessException(int error, String shortMessage, String detailMessage, Throwable throwable){
        super(error, shortMessage, detailMessage, throwable);
    }

}
